﻿namespace HRM.CORE.REPORT
{
    using DevExpress.Utils;
    using DevExpress.XtraPrinting;
    using DevExpress.XtraReports.UI;
    using Dictionary.ERP;
    using HRM.CORE;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Drawing.Printing;

    public class rptTimeKeeperFurlough : XtraReport
    {
        private BottomMarginBand BottomMargin;
        private IContainer components;
        private DetailBand Detail;
        private GroupFooterBand GroupFooter1;
        private GroupHeaderBand GroupHeader1;
        private string m_Code;
        private int m_Level;
        private int m_Order;
        private int m_Year;
        private XRPictureBox ptPhoto;
        private ReportFooterBand ReportFooter;
        private ReportHeaderBand ReportHeader;
        private TopMarginBand TopMargin;
        private XRLabel txtAddress;
        private XRLabel txtCompany;
        private XRTableCell txtEmployeeCode;
        private XRTableCell txtFirstName;
        private XRTableCell txtFurloughThisYear;
        private XRTableCell txtLastName;
        private XRTableCell txtM1;
        private XRTableCell txtM10;
        private XRTableCell txtM11;
        private XRTableCell txtM12;
        private XRTableCell txtM2;
        private XRTableCell txtM3;
        private XRTableCell txtM4;
        private XRTableCell txtM5;
        private XRTableCell txtM6;
        private XRTableCell txtM7;
        private XRTableCell txtM8;
        private XRTableCell txtM9;
        private XRTableCell txtNumberOfYear;
        private XRTableCell txtOrder;
        private XRTableCell txtRemainDay;
        private XRLabel txtTitle;
        private XRTableCell txtTotalDay;
        private XRTableCell txtTotalFurloughThisYear;
        private XRTableCell txtTotalM1;
        private XRTableCell txtTotalM10;
        private XRTableCell txtTotalM11;
        private XRTableCell txtTotalM12;
        private XRTableCell txtTotalM2;
        private XRTableCell txtTotalM3;
        private XRTableCell txtTotalM4;
        private XRTableCell txtTotalM5;
        private XRTableCell txtTotalM6;
        private XRTableCell txtTotalM7;
        private XRTableCell txtTotalM8;
        private XRTableCell txtTotalM9;
        private XRTableCell txtTotalNumberOfYear;
        private XRTableCell txtTotalRemainDay;
        private XRTableCell txtTotalTotalDay;
        private XRTableCell txtTotalYearOfWork;
        private XRLabel txtUnit;
        private XRTableCell txtYearOfWork;
        private XRLabel xrLabel2;
        private XRTable xrTable1;
        private XRTable xrTable2;
        private XRTable xrTable3;
        private XRTable xrTable4;
        private XRTableCell xrTableCell1;
        private XRTableCell xrTableCell10;
        private XRTableCell xrTableCell11;
        private XRTableCell xrTableCell12;
        private XRTableCell xrTableCell13;
        private XRTableCell xrTableCell14;
        private XRTableCell xrTableCell15;
        private XRTableCell xrTableCell16;
        private XRTableCell xrTableCell17;
        private XRTableCell xrTableCell18;
        private XRTableCell xrTableCell19;
        private XRTableCell xrTableCell2;
        private XRTableCell xrTableCell20;
        private XRTableCell xrTableCell21;
        private XRTableCell xrTableCell22;
        private XRTableCell xrTableCell23;
        private XRTableCell xrTableCell24;
        private XRTableCell xrTableCell25;
        private XRTableCell xrTableCell26;
        private XRTableCell xrTableCell27;
        private XRTableCell xrTableCell28;
        private XRTableCell xrTableCell3;
        private XRTableCell xrTableCell4;
        private XRTableCell xrTableCell5;
        private XRTableCell xrTableCell6;
        private XRTableCell xrTableCell7;
        private XRTableCell xrTableCell8;
        private XRTableCell xrTableCell9;
        private XRTableRow xrTableRow1;
        private XRTableRow xrTableRow2;
        private XRTableRow xrTableRow3;
        private XRTableRow xrTableRow4;
        private XRTableRow xrTableRow5;

        public rptTimeKeeperFurlough()
        {
            this.components = null;
            this.m_Level = 0;
            this.m_Code = "";
            this.m_Year = 0;
            this.m_Order = 0;
            this.InitializeComponent();
        }

        public rptTimeKeeperFurlough(int Level, string Code, int Year)
        {
            this.components = null;
            this.m_Level = 0;
            this.m_Code = "";
            this.m_Year = 0;
            this.m_Order = 0;
            this.InitializeComponent();
            this.m_Level = Level;
            this.m_Code = Code;
            this.m_Year = Year;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.Detail = new DetailBand();
            this.xrTable2 = new XRTable();
            this.xrTableRow2 = new XRTableRow();
            this.txtOrder = new XRTableCell();
            this.txtEmployeeCode = new XRTableCell();
            this.txtFirstName = new XRTableCell();
            this.txtLastName = new XRTableCell();
            this.txtYearOfWork = new XRTableCell();
            this.txtNumberOfYear = new XRTableCell();
            this.txtFurloughThisYear = new XRTableCell();
            this.txtM1 = new XRTableCell();
            this.txtM2 = new XRTableCell();
            this.txtM3 = new XRTableCell();
            this.txtM4 = new XRTableCell();
            this.txtM5 = new XRTableCell();
            this.txtM6 = new XRTableCell();
            this.txtM7 = new XRTableCell();
            this.txtM8 = new XRTableCell();
            this.txtM9 = new XRTableCell();
            this.txtM10 = new XRTableCell();
            this.txtM11 = new XRTableCell();
            this.txtM12 = new XRTableCell();
            this.txtTotalDay = new XRTableCell();
            this.txtRemainDay = new XRTableCell();
            this.TopMargin = new TopMarginBand();
            this.BottomMargin = new BottomMarginBand();
            this.ReportHeader = new ReportHeaderBand();
            this.ptPhoto = new XRPictureBox();
            this.txtTitle = new XRLabel();
            this.txtUnit = new XRLabel();
            this.txtAddress = new XRLabel();
            this.txtCompany = new XRLabel();
            this.xrLabel2 = new XRLabel();
            this.GroupHeader1 = new GroupHeaderBand();
            this.xrTable1 = new XRTable();
            this.xrTableRow1 = new XRTableRow();
            this.xrTableCell1 = new XRTableCell();
            this.xrTableCell14 = new XRTableCell();
            this.xrTableCell13 = new XRTableCell();
            this.xrTableCell2 = new XRTableCell();
            this.xrTableCell17 = new XRTableCell();
            this.xrTableCell22 = new XRTableCell();
            this.xrTableCell26 = new XRTableCell();
            this.xrTableCell3 = new XRTableCell();
            this.xrTableCell4 = new XRTableCell();
            this.xrTableCell18 = new XRTableCell();
            this.xrTableCell15 = new XRTableCell();
            this.xrTableCell5 = new XRTableCell();
            this.xrTableCell21 = new XRTableCell();
            this.xrTableCell24 = new XRTableCell();
            this.xrTableCell16 = new XRTableCell();
            this.xrTableCell19 = new XRTableCell();
            this.xrTableCell23 = new XRTableCell();
            this.xrTableCell6 = new XRTableCell();
            this.xrTableCell20 = new XRTableCell();
            this.xrTableCell25 = new XRTableCell();
            this.xrTableCell28 = new XRTableCell();
            this.ReportFooter = new ReportFooterBand();
            this.xrTable3 = new XRTable();
            this.xrTableRow3 = new XRTableRow();
            this.xrTableCell7 = new XRTableCell();
            this.xrTableCell8 = new XRTableCell();
            this.xrTableCell9 = new XRTableCell();
            this.xrTableRow4 = new XRTableRow();
            this.xrTableCell10 = new XRTableCell();
            this.xrTableCell11 = new XRTableCell();
            this.xrTableCell12 = new XRTableCell();
            this.GroupFooter1 = new GroupFooterBand();
            this.xrTable4 = new XRTable();
            this.xrTableRow5 = new XRTableRow();
            this.xrTableCell27 = new XRTableCell();
            this.txtTotalYearOfWork = new XRTableCell();
            this.txtTotalNumberOfYear = new XRTableCell();
            this.txtTotalFurloughThisYear = new XRTableCell();
            this.txtTotalM1 = new XRTableCell();
            this.txtTotalM2 = new XRTableCell();
            this.txtTotalM3 = new XRTableCell();
            this.txtTotalM4 = new XRTableCell();
            this.txtTotalM5 = new XRTableCell();
            this.txtTotalM6 = new XRTableCell();
            this.txtTotalM7 = new XRTableCell();
            this.txtTotalM8 = new XRTableCell();
            this.txtTotalM9 = new XRTableCell();
            this.txtTotalM10 = new XRTableCell();
            this.txtTotalM11 = new XRTableCell();
            this.txtTotalM12 = new XRTableCell();
            this.txtTotalTotalDay = new XRTableCell();
            this.txtTotalRemainDay = new XRTableCell();
            this.xrTable2.BeginInit();
            this.xrTable1.BeginInit();
            this.xrTable3.BeginInit();
            this.xrTable4.BeginInit();
            this.BeginInit();
            this.Detail.Controls.AddRange(new XRControl[] { this.xrTable2 });
            this.Detail.HeightF = 29.16667f;
            this.Detail.Name = "Detail";
            this.Detail.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.Detail.TextAlignment = TextAlignment.TopLeft;
            this.xrTable2.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left;
            this.xrTable2.Font = new Font("Times New Roman", 8.25f);
            this.xrTable2.LocationFloat = new PointFloat(4.768372E-05f, 0f);
            this.xrTable2.Name = "xrTable2";
            this.xrTable2.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTable2.Rows.AddRange(new XRTableRow[] { this.xrTableRow2 });
            this.xrTable2.SizeF = new SizeF(1109f, 29.16667f);
            this.xrTable2.StylePriority.UseBorders = false;
            this.xrTable2.StylePriority.UseFont = false;
            this.xrTable2.StylePriority.UsePadding = false;
            this.xrTable2.StylePriority.UseTextAlignment = false;
            this.xrTable2.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableRow2.Cells.AddRange(new XRTableCell[] { 
                this.txtOrder, this.txtEmployeeCode, this.txtFirstName, this.txtLastName, this.txtYearOfWork, this.txtNumberOfYear, this.txtFurloughThisYear, this.txtM1, this.txtM2, this.txtM3, this.txtM4, this.txtM5, this.txtM6, this.txtM7, this.txtM8, this.txtM9, 
                this.txtM10, this.txtM11, this.txtM12, this.txtTotalDay, this.txtRemainDay
             });
            this.xrTableRow2.Name = "xrTableRow2";
            this.xrTableRow2.Weight = 1.0;
            this.txtOrder.Name = "txtOrder";
            this.txtOrder.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtOrder.StylePriority.UsePadding = false;
            this.txtOrder.StylePriority.UseTextAlignment = false;
            this.txtOrder.Text = "txtOrder";
            this.txtOrder.TextAlignment = TextAlignment.MiddleLeft;
            this.txtOrder.Weight = 0.1360080736281245;
            this.txtOrder.BeforePrint += new PrintEventHandler(this.txtOrder_BeforePrint);
            this.txtEmployeeCode.Name = "txtEmployeeCode";
            this.txtEmployeeCode.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtEmployeeCode.StylePriority.UsePadding = false;
            this.txtEmployeeCode.StylePriority.UseTextAlignment = false;
            this.txtEmployeeCode.Text = "txtEmployeeCode";
            this.txtEmployeeCode.TextAlignment = TextAlignment.MiddleLeft;
            this.txtEmployeeCode.Weight = 0.29466829892690849;
            this.txtFirstName.Name = "txtFirstName";
            this.txtFirstName.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtFirstName.StylePriority.UsePadding = false;
            this.txtFirstName.StylePriority.UseTextAlignment = false;
            this.txtFirstName.Text = "txtFirstName";
            this.txtFirstName.TextAlignment = TextAlignment.MiddleLeft;
            this.txtFirstName.Weight = 0.60923127244929665;
            this.txtLastName.Name = "txtLastName";
            this.txtLastName.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtLastName.StylePriority.UsePadding = false;
            this.txtLastName.StylePriority.UseTextAlignment = false;
            this.txtLastName.Text = "txtLastName";
            this.txtLastName.TextAlignment = TextAlignment.MiddleLeft;
            this.txtLastName.Weight = 0.28479808036450771;
            this.txtYearOfWork.Name = "txtYearOfWork";
            this.txtYearOfWork.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtYearOfWork.StylePriority.UsePadding = false;
            this.txtYearOfWork.StylePriority.UseTextAlignment = false;
            this.txtYearOfWork.Text = "txtYearOfWork";
            this.txtYearOfWork.TextAlignment = TextAlignment.MiddleCenter;
            this.txtYearOfWork.Weight = 0.27267612761560434;
            this.txtNumberOfYear.Name = "txtNumberOfYear";
            this.txtNumberOfYear.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtNumberOfYear.StylePriority.UsePadding = false;
            this.txtNumberOfYear.StylePriority.UseTextAlignment = false;
            this.txtNumberOfYear.Text = "txtNumberOfYear";
            this.txtNumberOfYear.TextAlignment = TextAlignment.MiddleCenter;
            this.txtNumberOfYear.Weight = 0.27938837676381578;
            this.txtFurloughThisYear.Name = "txtFurloughThisYear";
            this.txtFurloughThisYear.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtFurloughThisYear.StylePriority.UsePadding = false;
            this.txtFurloughThisYear.StylePriority.UseTextAlignment = false;
            this.txtFurloughThisYear.Text = "txtFurloughThisYear";
            this.txtFurloughThisYear.TextAlignment = TextAlignment.MiddleCenter;
            this.txtFurloughThisYear.Weight = 0.29134602309519553;
            this.txtM1.Name = "txtM1";
            this.txtM1.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtM1.StylePriority.UsePadding = false;
            this.txtM1.StylePriority.UseTextAlignment = false;
            this.txtM1.Text = "txtM1";
            this.txtM1.TextAlignment = TextAlignment.MiddleCenter;
            this.txtM1.Weight = 0.24221688968595084;
            this.txtM1.BeforePrint += new PrintEventHandler(this.txtM1_BeforePrint);
            this.txtM2.Name = "txtM2";
            this.txtM2.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtM2.StylePriority.UsePadding = false;
            this.txtM2.StylePriority.UseTextAlignment = false;
            this.txtM2.Text = "txtM2";
            this.txtM2.TextAlignment = TextAlignment.MiddleCenter;
            this.txtM2.Weight = 0.24221749504687126;
            this.txtM2.BeforePrint += new PrintEventHandler(this.txtM1_BeforePrint);
            this.txtM3.Name = "txtM3";
            this.txtM3.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtM3.StylePriority.UsePadding = false;
            this.txtM3.StylePriority.UseTextAlignment = false;
            this.txtM3.Text = "txtM3";
            this.txtM3.TextAlignment = TextAlignment.MiddleCenter;
            this.txtM3.Weight = 0.24221643563001213;
            this.txtM3.BeforePrint += new PrintEventHandler(this.txtM1_BeforePrint);
            this.txtM4.Name = "txtM4";
            this.txtM4.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtM4.StylePriority.UsePadding = false;
            this.txtM4.StylePriority.UseTextAlignment = false;
            this.txtM4.Text = "txtM4";
            this.txtM4.TextAlignment = TextAlignment.MiddleCenter;
            this.txtM4.Weight = 0.24221734585095409;
            this.txtM4.BeforePrint += new PrintEventHandler(this.txtM1_BeforePrint);
            this.txtM5.Name = "txtM5";
            this.txtM5.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtM5.StylePriority.UsePadding = false;
            this.txtM5.StylePriority.UseTextAlignment = false;
            this.txtM5.Text = "txtM5";
            this.txtM5.TextAlignment = TextAlignment.MiddleCenter;
            this.txtM5.Weight = 0.24221703706258618;
            this.txtM5.BeforePrint += new PrintEventHandler(this.txtM1_BeforePrint);
            this.txtM6.Name = "txtM6";
            this.txtM6.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtM6.StylePriority.UsePadding = false;
            this.txtM6.StylePriority.UseTextAlignment = false;
            this.txtM6.Text = "txtM6";
            this.txtM6.TextAlignment = TextAlignment.MiddleCenter;
            this.txtM6.Weight = 0.24221703408553003;
            this.txtM6.BeforePrint += new PrintEventHandler(this.txtM1_BeforePrint);
            this.txtM7.Name = "txtM7";
            this.txtM7.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtM7.StylePriority.UsePadding = false;
            this.txtM7.StylePriority.UseTextAlignment = false;
            this.txtM7.Text = "txtM7";
            this.txtM7.TextAlignment = TextAlignment.MiddleCenter;
            this.txtM7.Weight = 0.24221704603042105;
            this.txtM7.BeforePrint += new PrintEventHandler(this.txtM1_BeforePrint);
            this.txtM8.Name = "txtM8";
            this.txtM8.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtM8.StylePriority.UsePadding = false;
            this.txtM8.StylePriority.UseTextAlignment = false;
            this.txtM8.Text = "txtM8";
            this.txtM8.TextAlignment = TextAlignment.MiddleCenter;
            this.txtM8.Weight = 0.24221735074270787;
            this.txtM8.BeforePrint += new PrintEventHandler(this.txtM1_BeforePrint);
            this.txtM9.Name = "txtM9";
            this.txtM9.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtM9.StylePriority.UsePadding = false;
            this.txtM9.StylePriority.UseTextAlignment = false;
            this.txtM9.Text = "txtM9";
            this.txtM9.TextAlignment = TextAlignment.MiddleCenter;
            this.txtM9.Weight = 0.24221644561489711;
            this.txtM9.BeforePrint += new PrintEventHandler(this.txtM1_BeforePrint);
            this.txtM10.Name = "txtM10";
            this.txtM10.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtM10.StylePriority.UsePadding = false;
            this.txtM10.StylePriority.UseTextAlignment = false;
            this.txtM10.Text = "txtM10";
            this.txtM10.TextAlignment = TextAlignment.MiddleCenter;
            this.txtM10.Weight = 0.24221735199528113;
            this.txtM10.BeforePrint += new PrintEventHandler(this.txtM1_BeforePrint);
            this.txtM11.Name = "txtM11";
            this.txtM11.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtM11.StylePriority.UsePadding = false;
            this.txtM11.StylePriority.UseTextAlignment = false;
            this.txtM11.Text = "txtM11";
            this.txtM11.TextAlignment = TextAlignment.MiddleCenter;
            this.txtM11.Weight = 0.24221735199542915;
            this.txtM11.BeforePrint += new PrintEventHandler(this.txtM1_BeforePrint);
            this.txtM12.Font = new Font("Times New Roman", 8.25f);
            this.txtM12.Name = "txtM12";
            this.txtM12.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtM12.StylePriority.UseFont = false;
            this.txtM12.StylePriority.UsePadding = false;
            this.txtM12.StylePriority.UseTextAlignment = false;
            this.txtM12.Text = "txtM12";
            this.txtM12.TextAlignment = TextAlignment.MiddleCenter;
            this.txtM12.Weight = 0.24098124184806249;
            this.txtM12.BeforePrint += new PrintEventHandler(this.txtM1_BeforePrint);
            this.txtTotalDay.Font = new Font("Times New Roman", 8.25f);
            this.txtTotalDay.Name = "txtTotalDay";
            this.txtTotalDay.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtTotalDay.StylePriority.UseFont = false;
            this.txtTotalDay.StylePriority.UsePadding = false;
            this.txtTotalDay.StylePriority.UseTextAlignment = false;
            this.txtTotalDay.Text = "txtTotalDay";
            this.txtTotalDay.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTotalDay.Weight = 0.28613626400576103;
            this.txtRemainDay.Name = "txtRemainDay";
            this.txtRemainDay.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtRemainDay.StylePriority.UsePadding = false;
            this.txtRemainDay.StylePriority.UseTextAlignment = false;
            this.txtRemainDay.Text = "txtRemainDay";
            this.txtRemainDay.TextAlignment = TextAlignment.MiddleCenter;
            this.txtRemainDay.Weight = 0.27068889938131296;
            this.TopMargin.HeightF = 40f;
            this.TopMargin.Name = "TopMargin";
            this.TopMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.TopMargin.TextAlignment = TextAlignment.TopLeft;
            this.BottomMargin.HeightF = 40f;
            this.BottomMargin.Name = "BottomMargin";
            this.BottomMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.BottomMargin.TextAlignment = TextAlignment.TopLeft;
            this.ReportHeader.Controls.AddRange(new XRControl[] { this.ptPhoto, this.txtTitle, this.txtUnit, this.txtAddress, this.txtCompany, this.xrLabel2 });
            this.ReportHeader.HeightF = 123f;
            this.ReportHeader.Name = "ReportHeader";
            this.ptPhoto.LocationFloat = new PointFloat(4.768372E-05f, 0f);
            this.ptPhoto.Name = "ptPhoto";
            this.ptPhoto.SizeF = new SizeF(88.54166f, 58.33333f);
            this.ptPhoto.Sizing = ImageSizeMode.ZoomImage;
            this.txtTitle.Font = new Font("Times New Roman", 16f, FontStyle.Bold);
            this.txtTitle.LocationFloat = new PointFloat(3.178914E-05f, 68.75f);
            this.txtTitle.Name = "txtTitle";
            this.txtTitle.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtTitle.SizeF = new SizeF(1109f, 30.25001f);
            this.txtTitle.StylePriority.UseFont = false;
            this.txtTitle.StylePriority.UseTextAlignment = false;
            this.txtTitle.Text = "PH\x00c9P NĂM 0000";
            this.txtTitle.TextAlignment = TextAlignment.MiddleCenter;
            this.txtUnit.Font = new Font("Times New Roman", 9.75f);
            this.txtUnit.LocationFloat = new PointFloat(715.0834f, 10.00001f);
            this.txtUnit.Name = "txtUnit";
            this.txtUnit.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtUnit.SizeF = new SizeF(393.9165f, 17.70833f);
            this.txtUnit.StylePriority.UseFont = false;
            this.txtUnit.StylePriority.UseTextAlignment = false;
            this.txtUnit.TextAlignment = TextAlignment.MiddleRight;
            this.txtAddress.Font = new Font("Times New Roman", 9.75f);
            this.txtAddress.LocationFloat = new PointFloat(146.8749f, 29.70837f);
            this.txtAddress.Name = "txtAddress";
            this.txtAddress.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtAddress.SizeF = new SizeF(408.375f, 17.70833f);
            this.txtAddress.StylePriority.UseFont = false;
            this.txtAddress.Text = "txtAddress";
            this.txtCompany.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.txtCompany.LocationFloat = new PointFloat(93.08337f, 8.000007f);
            this.txtCompany.Name = "txtCompany";
            this.txtCompany.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtCompany.SizeF = new SizeF(462.1666f, 17.70833f);
            this.txtCompany.StylePriority.UseFont = false;
            this.txtCompany.Text = "txtCompany";
            this.xrLabel2.Font = new Font("Times New Roman", 9.75f);
            this.xrLabel2.LocationFloat = new PointFloat(93.08337f, 29.70827f);
            this.xrLabel2.Name = "xrLabel2";
            this.xrLabel2.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel2.SizeF = new SizeF(53.7916f, 17.70833f);
            this.xrLabel2.StylePriority.UseFont = false;
            this.xrLabel2.Text = "Địa Chỉ:";
            this.GroupHeader1.Controls.AddRange(new XRControl[] { this.xrTable1 });
            this.GroupHeader1.HeightF = 54.58333f;
            this.GroupHeader1.Name = "GroupHeader1";
            this.xrTable1.AnchorVertical = VerticalAnchorStyles.Bottom;
            this.xrTable1.Borders = BorderSide.All;
            this.xrTable1.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTable1.LocationFloat = new PointFloat(4.768372E-05f, 0f);
            this.xrTable1.Name = "xrTable1";
            this.xrTable1.Rows.AddRange(new XRTableRow[] { this.xrTableRow1 });
            this.xrTable1.SizeF = new SizeF(1109f, 54.58333f);
            this.xrTable1.StylePriority.UseBorders = false;
            this.xrTable1.StylePriority.UseFont = false;
            this.xrTable1.StylePriority.UseTextAlignment = false;
            this.xrTable1.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableRow1.BackColor = Color.WhiteSmoke;
            this.xrTableRow1.Cells.AddRange(new XRTableCell[] { 
                this.xrTableCell1, this.xrTableCell14, this.xrTableCell13, this.xrTableCell2, this.xrTableCell17, this.xrTableCell22, this.xrTableCell26, this.xrTableCell3, this.xrTableCell4, this.xrTableCell18, this.xrTableCell15, this.xrTableCell5, this.xrTableCell21, this.xrTableCell24, this.xrTableCell16, this.xrTableCell19, 
                this.xrTableCell23, this.xrTableCell6, this.xrTableCell20, this.xrTableCell25, this.xrTableCell28
             });
            this.xrTableRow1.Name = "xrTableRow1";
            this.xrTableRow1.StylePriority.UseBackColor = false;
            this.xrTableRow1.Weight = 1.0;
            this.xrTableCell1.CanGrow = false;
            this.xrTableCell1.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell1.Name = "xrTableCell1";
            this.xrTableCell1.StylePriority.UseFont = false;
            this.xrTableCell1.StylePriority.UseTextAlignment = false;
            this.xrTableCell1.Text = "STT";
            this.xrTableCell1.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell1.Weight = 0.13600821575901695;
            this.xrTableCell14.CanGrow = false;
            this.xrTableCell14.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell14.Name = "xrTableCell14";
            this.xrTableCell14.StylePriority.UseFont = false;
            this.xrTableCell14.StylePriority.UseTextAlignment = false;
            this.xrTableCell14.Text = "M\x00e3 nh\x00e2n vi\x00ean";
            this.xrTableCell14.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell14.Weight = 0.29466831543271532;
            this.xrTableCell13.CanGrow = false;
            this.xrTableCell13.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell13.Name = "xrTableCell13";
            this.xrTableCell13.StylePriority.UseFont = false;
            this.xrTableCell13.StylePriority.UseTextAlignment = false;
            this.xrTableCell13.Text = "Họ l\x00f3t";
            this.xrTableCell13.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell13.Weight = 0.60923141150853066;
            this.xrTableCell2.CanGrow = false;
            this.xrTableCell2.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell2.Name = "xrTableCell2";
            this.xrTableCell2.StylePriority.UseFont = false;
            this.xrTableCell2.StylePriority.UseTextAlignment = false;
            this.xrTableCell2.Text = "T\x00ean";
            this.xrTableCell2.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell2.Weight = 0.28479814301393086;
            this.xrTableCell17.CanGrow = false;
            this.xrTableCell17.Name = "xrTableCell17";
            this.xrTableCell17.Text = "Năm c\x00f4ng t\x00e1c";
            this.xrTableCell17.Weight = 0.27267652397407638;
            this.xrTableCell22.CanGrow = false;
            this.xrTableCell22.Name = "xrTableCell22";
            this.xrTableCell22.Text = "Số năm t\x00ednh P.N";
            this.xrTableCell22.Weight = 0.27938832829025273;
            this.xrTableCell26.CanGrow = false;
            this.xrTableCell26.Name = "xrTableCell26";
            this.xrTableCell26.Text = "Số ng\x00e0y P.N";
            this.xrTableCell26.Weight = 0.29134597693115227;
            this.xrTableCell3.CanGrow = false;
            this.xrTableCell3.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell3.Name = "xrTableCell3";
            this.xrTableCell3.StylePriority.UseFont = false;
            this.xrTableCell3.StylePriority.UseTextAlignment = false;
            this.xrTableCell3.Text = "Th\x00e1ng 1";
            this.xrTableCell3.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell3.Weight = 0.24221712789941097;
            this.xrTableCell4.CanGrow = false;
            this.xrTableCell4.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell4.Name = "xrTableCell4";
            this.xrTableCell4.StylePriority.UseFont = false;
            this.xrTableCell4.StylePriority.UseTextAlignment = false;
            this.xrTableCell4.Text = "Th\x00e1ng 2";
            this.xrTableCell4.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell4.Weight = 0.24221713122133431;
            this.xrTableCell18.CanGrow = false;
            this.xrTableCell18.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell18.Name = "xrTableCell18";
            this.xrTableCell18.StylePriority.UseFont = false;
            this.xrTableCell18.StylePriority.UseTextAlignment = false;
            this.xrTableCell18.Text = "Th\x00e1ng 3";
            this.xrTableCell18.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell18.Weight = 0.24221712509603743;
            this.xrTableCell15.CanGrow = false;
            this.xrTableCell15.Name = "xrTableCell15";
            this.xrTableCell15.Text = "Th\x00e1ng 4";
            this.xrTableCell15.Weight = 0.24221712257202674;
            this.xrTableCell5.CanGrow = false;
            this.xrTableCell5.Name = "xrTableCell5";
            this.xrTableCell5.Text = "Th\x00e1ng 5";
            this.xrTableCell5.Weight = 0.24221713200045508;
            this.xrTableCell21.CanGrow = false;
            this.xrTableCell21.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableCell21.Name = "xrTableCell21";
            this.xrTableCell21.StylePriority.UseFont = false;
            this.xrTableCell21.StylePriority.UseTextAlignment = false;
            this.xrTableCell21.Text = "Th\x00e1ng 6";
            this.xrTableCell21.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell21.Weight = 0.24221712102157955;
            this.xrTableCell24.CanGrow = false;
            this.xrTableCell24.Name = "xrTableCell24";
            this.xrTableCell24.Text = "Th\x00e1ng 7";
            this.xrTableCell24.Weight = 0.24221712245792149;
            this.xrTableCell16.CanGrow = false;
            this.xrTableCell16.Name = "xrTableCell16";
            this.xrTableCell16.Text = "Th\x00e1ng 8";
            this.xrTableCell16.Weight = 0.24221712329020764;
            this.xrTableCell19.CanGrow = false;
            this.xrTableCell19.Name = "xrTableCell19";
            this.xrTableCell19.Text = "Th\x00e1ng 9";
            this.xrTableCell19.Weight = 0.24221713271862591;
            this.xrTableCell23.CanGrow = false;
            this.xrTableCell23.Name = "xrTableCell23";
            this.xrTableCell23.Text = "Th\x00e1ng 10";
            this.xrTableCell23.Weight = 0.24221712370635051;
            this.xrTableCell6.CanGrow = false;
            this.xrTableCell6.Name = "xrTableCell6";
            this.xrTableCell6.Text = "Th\x00e1ng 11";
            this.xrTableCell6.Weight = 0.24221713313476897;
            this.xrTableCell20.CanGrow = false;
            this.xrTableCell20.Name = "xrTableCell20";
            this.xrTableCell20.Text = "Th\x00e1ng 12";
            this.xrTableCell20.Weight = 0.24221712370634552;
            this.xrTableCell25.CanGrow = false;
            this.xrTableCell25.Name = "xrTableCell25";
            this.xrTableCell25.Text = "Tổng cộng";
            this.xrTableCell25.Weight = 0.284901073660071;
            this.xrTableCell28.CanGrow = false;
            this.xrTableCell28.Name = "xrTableCell28";
            this.xrTableCell28.Text = "Ph\x00e9p c\x00f2n";
            this.xrTableCell28.Weight = 0.27068892069841283;
            this.ReportFooter.Controls.AddRange(new XRControl[] { this.xrTable3 });
            this.ReportFooter.HeightF = 100f;
            this.ReportFooter.Name = "ReportFooter";
            this.xrTable3.LocationFloat = new PointFloat(4.768372E-05f, 21.875f);
            this.xrTable3.Name = "xrTable3";
            this.xrTable3.Rows.AddRange(new XRTableRow[] { this.xrTableRow3, this.xrTableRow4 });
            this.xrTable3.SizeF = new SizeF(1109f, 62.5f);
            this.xrTableRow3.Cells.AddRange(new XRTableCell[] { this.xrTableCell7, this.xrTableCell8, this.xrTableCell9 });
            this.xrTableRow3.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableRow3.Name = "xrTableRow3";
            this.xrTableRow3.StylePriority.UseFont = false;
            this.xrTableRow3.StylePriority.UseTextAlignment = false;
            this.xrTableRow3.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableRow3.Weight = 1.0;
            this.xrTableCell7.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableCell7.Name = "xrTableCell7";
            this.xrTableCell7.StylePriority.UseFont = false;
            this.xrTableCell7.StylePriority.UseTextAlignment = false;
            this.xrTableCell7.Text = "Người lập bảng";
            this.xrTableCell7.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell7.Weight = 1.0;
            this.xrTableCell8.Name = "xrTableCell8";
            this.xrTableCell8.Weight = 1.0;
            this.xrTableCell9.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableCell9.Name = "xrTableCell9";
            this.xrTableCell9.StylePriority.UseFont = false;
            this.xrTableCell9.StylePriority.UseTextAlignment = false;
            this.xrTableCell9.Text = "Gi\x00e1m đốc";
            this.xrTableCell9.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell9.Weight = 1.0;
            this.xrTableRow4.Cells.AddRange(new XRTableCell[] { this.xrTableCell10, this.xrTableCell11, this.xrTableCell12 });
            this.xrTableRow4.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableRow4.Name = "xrTableRow4";
            this.xrTableRow4.StylePriority.UseFont = false;
            this.xrTableRow4.StylePriority.UseTextAlignment = false;
            this.xrTableRow4.TextAlignment = TextAlignment.TopCenter;
            this.xrTableRow4.Weight = 1.0;
            this.xrTableCell10.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell10.Name = "xrTableCell10";
            this.xrTableCell10.StylePriority.UseFont = false;
            this.xrTableCell10.StylePriority.UseTextAlignment = false;
            this.xrTableCell10.Text = "(K\x00fd v\x00e0 ghi r\x00f5 họ t\x00ean)";
            this.xrTableCell10.TextAlignment = TextAlignment.TopCenter;
            this.xrTableCell10.Weight = 1.0;
            this.xrTableCell11.Name = "xrTableCell11";
            this.xrTableCell11.Weight = 1.0;
            this.xrTableCell12.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell12.Name = "xrTableCell12";
            this.xrTableCell12.StylePriority.UseFont = false;
            this.xrTableCell12.StylePriority.UseTextAlignment = false;
            this.xrTableCell12.Text = "(K\x00fd v\x00e0 ghi r\x00f5 họ t\x00ean)";
            this.xrTableCell12.TextAlignment = TextAlignment.TopCenter;
            this.xrTableCell12.Weight = 1.0;
            this.GroupFooter1.Controls.AddRange(new XRControl[] { this.xrTable4 });
            this.GroupFooter1.HeightF = 18.75f;
            this.GroupFooter1.Name = "GroupFooter1";
            this.xrTable4.BackColor = Color.WhiteSmoke;
            this.xrTable4.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left;
            this.xrTable4.LocationFloat = new PointFloat(0f, 0f);
            this.xrTable4.Name = "xrTable4";
            this.xrTable4.Rows.AddRange(new XRTableRow[] { this.xrTableRow5 });
            this.xrTable4.SizeF = new SizeF(1109f, 18.75f);
            this.xrTable4.StylePriority.UseBackColor = false;
            this.xrTable4.StylePriority.UseBorders = false;
            this.xrTableRow5.Cells.AddRange(new XRTableCell[] { 
                this.xrTableCell27, this.txtTotalYearOfWork, this.txtTotalNumberOfYear, this.txtTotalFurloughThisYear, this.txtTotalM1, this.txtTotalM2, this.txtTotalM3, this.txtTotalM4, this.txtTotalM5, this.txtTotalM6, this.txtTotalM7, this.txtTotalM8, this.txtTotalM9, this.txtTotalM10, this.txtTotalM11, this.txtTotalM12, 
                this.txtTotalTotalDay, this.txtTotalRemainDay
             });
            this.xrTableRow5.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTableRow5.Name = "xrTableRow5";
            this.xrTableRow5.StylePriority.UseFont = false;
            this.xrTableRow5.Weight = 1.0;
            this.xrTableCell27.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic | FontStyle.Bold);
            this.xrTableCell27.Name = "xrTableCell27";
            this.xrTableCell27.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.xrTableCell27.StylePriority.UseFont = false;
            this.xrTableCell27.StylePriority.UsePadding = false;
            this.xrTableCell27.StylePriority.UseTextAlignment = false;
            this.xrTableCell27.Text = "Tổng Cộng:";
            this.xrTableCell27.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell27.Weight = 0.71717738216660276;
            this.txtTotalYearOfWork.Name = "txtTotalYearOfWork";
            this.txtTotalYearOfWork.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtTotalYearOfWork.StylePriority.UsePadding = false;
            this.txtTotalYearOfWork.StylePriority.UseTextAlignment = false;
            this.txtTotalYearOfWork.Text = "txtTotalYearOfWork";
            this.txtTotalYearOfWork.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTotalYearOfWork.Weight = 0.14762305064200645;
            this.txtTotalNumberOfYear.Name = "txtTotalNumberOfYear";
            this.txtTotalNumberOfYear.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtTotalNumberOfYear.StylePriority.UsePadding = false;
            this.txtTotalNumberOfYear.StylePriority.UseTextAlignment = false;
            this.txtTotalNumberOfYear.Text = "txtTotalNumberOfYear";
            this.txtTotalNumberOfYear.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTotalNumberOfYear.Weight = 0.15125705629254493;
            this.txtTotalFurloughThisYear.Name = "txtTotalFurloughThisYear";
            this.txtTotalFurloughThisYear.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtTotalFurloughThisYear.StylePriority.UsePadding = false;
            this.txtTotalFurloughThisYear.StylePriority.UseTextAlignment = false;
            this.txtTotalFurloughThisYear.Text = "txtTotalFurloughThisYear";
            this.txtTotalFurloughThisYear.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTotalFurloughThisYear.Weight = 0.1577306004536668;
            this.txtTotalM1.Multiline = true;
            this.txtTotalM1.Name = "txtTotalM1";
            this.txtTotalM1.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtTotalM1.StylePriority.UsePadding = false;
            this.txtTotalM1.StylePriority.UseTextAlignment = false;
            this.txtTotalM1.Text = "txtTotalM1";
            this.txtTotalM1.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTotalM1.Weight = 0.1311327570361743;
            this.txtTotalM2.Multiline = true;
            this.txtTotalM2.Name = "txtTotalM2";
            this.txtTotalM2.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtTotalM2.StylePriority.UsePadding = false;
            this.txtTotalM2.StylePriority.UseTextAlignment = false;
            this.txtTotalM2.Text = "txtTotalM2";
            this.txtTotalM2.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTotalM2.Weight = 0.13113301381855164;
            this.txtTotalM3.Multiline = true;
            this.txtTotalM3.Name = "txtTotalM3";
            this.txtTotalM3.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtTotalM3.StylePriority.UsePadding = false;
            this.txtTotalM3.StylePriority.UseTextAlignment = false;
            this.txtTotalM3.Text = "txtTotalM3";
            this.txtTotalM3.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTotalM3.Weight = 0.13113292704353763;
            this.txtTotalM4.Multiline = true;
            this.txtTotalM4.Name = "txtTotalM4";
            this.txtTotalM4.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtTotalM4.StylePriority.UsePadding = false;
            this.txtTotalM4.StylePriority.UseTextAlignment = false;
            this.txtTotalM4.Text = "txtTotalM4";
            this.txtTotalM4.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTotalM4.Weight = 0.13113292704353768;
            this.txtTotalM5.Multiline = true;
            this.txtTotalM5.Name = "txtTotalM5";
            this.txtTotalM5.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtTotalM5.StylePriority.UsePadding = false;
            this.txtTotalM5.StylePriority.UseTextAlignment = false;
            this.txtTotalM5.Text = "txtTotalM5";
            this.txtTotalM5.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTotalM5.Weight = 0.13113309240912027;
            this.txtTotalM6.Multiline = true;
            this.txtTotalM6.Name = "txtTotalM6";
            this.txtTotalM6.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtTotalM6.StylePriority.UsePadding = false;
            this.txtTotalM6.StylePriority.UseTextAlignment = false;
            this.txtTotalM6.Text = "txtTotalM6";
            this.txtTotalM6.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTotalM6.Weight = 0.13113260339770172;
            this.txtTotalM7.Multiline = true;
            this.txtTotalM7.Name = "txtTotalM7";
            this.txtTotalM7.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtTotalM7.StylePriority.UsePadding = false;
            this.txtTotalM7.StylePriority.UseTextAlignment = false;
            this.txtTotalM7.Text = "txtTotalM7";
            this.txtTotalM7.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTotalM7.Weight = 0.13113293058620235;
            this.txtTotalM8.Multiline = true;
            this.txtTotalM8.Name = "txtTotalM8";
            this.txtTotalM8.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtTotalM8.StylePriority.UsePadding = false;
            this.txtTotalM8.StylePriority.UseTextAlignment = false;
            this.txtTotalM8.Text = "txtTotalM8";
            this.txtTotalM8.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTotalM8.Weight = 0.13113309418045263;
            this.txtTotalM9.Multiline = true;
            this.txtTotalM9.Name = "txtTotalM9";
            this.txtTotalM9.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtTotalM9.StylePriority.UsePadding = false;
            this.txtTotalM9.StylePriority.UseTextAlignment = false;
            this.txtTotalM9.Text = "txtTotalM9";
            this.txtTotalM9.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTotalM9.Weight = 0.13113277783339586;
            this.txtTotalM10.Multiline = true;
            this.txtTotalM10.Name = "txtTotalM10";
            this.txtTotalM10.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtTotalM10.StylePriority.UsePadding = false;
            this.txtTotalM10.StylePriority.UseTextAlignment = false;
            this.txtTotalM10.Text = "txtTotalM10";
            this.txtTotalM10.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTotalM10.Weight = 0.13113309430697637;
            this.txtTotalM11.Multiline = true;
            this.txtTotalM11.Name = "txtTotalM11";
            this.txtTotalM11.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtTotalM11.StylePriority.UsePadding = false;
            this.txtTotalM11.StylePriority.UseTextAlignment = false;
            this.txtTotalM11.Text = "txtTotalM11";
            this.txtTotalM11.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTotalM11.Weight = 0.13113309548915314;
            this.txtTotalM12.Multiline = true;
            this.txtTotalM12.Name = "txtTotalM12";
            this.txtTotalM12.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtTotalM12.StylePriority.UsePadding = false;
            this.txtTotalM12.StylePriority.UseTextAlignment = false;
            this.txtTotalM12.Text = "txtTotalM12";
            this.txtTotalM12.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTotalM12.Weight = 0.13113260529169229;
            this.txtTotalTotalDay.CanShrink = true;
            this.txtTotalTotalDay.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.txtTotalTotalDay.Multiline = true;
            this.txtTotalTotalDay.Name = "txtTotalTotalDay";
            this.txtTotalTotalDay.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtTotalTotalDay.StylePriority.UseFont = false;
            this.txtTotalTotalDay.StylePriority.UsePadding = false;
            this.txtTotalTotalDay.StylePriority.UseTextAlignment = false;
            this.txtTotalTotalDay.Text = "txtTotalTotalDay";
            this.txtTotalTotalDay.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTotalTotalDay.Weight = 0.15424113562795588;
            this.txtTotalRemainDay.Name = "txtTotalRemainDay";
            this.txtTotalRemainDay.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.txtTotalRemainDay.StylePriority.UsePadding = false;
            this.txtTotalRemainDay.StylePriority.UseTextAlignment = false;
            this.txtTotalRemainDay.Text = "txtTotalRemainDay";
            this.txtTotalRemainDay.TextAlignment = TextAlignment.MiddleCenter;
            this.txtTotalRemainDay.Weight = 0.1465474587098414;
            base.Bands.AddRange(new Band[] { this.Detail, this.TopMargin, this.BottomMargin, this.ReportHeader, this.GroupHeader1, this.ReportFooter, this.GroupFooter1 });
            base.Landscape = true;
            base.Margins = new Margins(30, 30, 40, 40);
            base.PageHeight = 0x33b;
            base.PageWidth = 0x491;
            base.PaperKind = PaperKind.A4;
            base.Version = "9.3";
            this.BeforePrint += new PrintEventHandler(this.rptListEmployee_BeforePrint);
            this.xrTable2.EndInit();
            this.xrTable1.EndInit();
            this.xrTable3.EndInit();
            this.xrTable4.EndInit();
            this.EndInit();
        }

        private void LoadAllData()
        {
            HRM_TIMEKEEPER_FURLOUGH hrm_timekeeper_furlough = new HRM_TIMEKEEPER_FURLOUGH();
            DataSet set = new DataSet();
            DataTable table = new DataTable();
            table = hrm_timekeeper_furlough.GetList(this.m_Level, this.m_Code, this.m_Year);
            if (this.m_Level != 0)
            {
                if (this.m_Level == 1)
                {
                    HRM_BRANCH hrm_branch = new HRM_BRANCH();
                    hrm_branch.Get(this.m_Code);
                    this.txtUnit.Text = "Đơn vị: " + hrm_branch.BranchName;
                }
                else if (this.m_Level == 2)
                {
                    HRM_DEPARTMENT hrm_department = new HRM_DEPARTMENT();
                    hrm_department.Get(this.m_Code);
                    this.txtUnit.Text = "Đơn vị: " + hrm_department.DepartmentName;
                }
                else if (this.m_Level == 3)
                {
                    HRM_GROUP hrm_group = new HRM_GROUP();
                    hrm_group.Get(this.m_Code);
                    this.txtUnit.Text = "Đơn vị: " + hrm_group.GroupName;
                }
            }
            set.Tables.Add(table);
            base.DataSource = set;
            this.txtEmployeeCode.DataBindings.Add("Text", base.DataSource, "EmployeeCode");
            this.txtFirstName.DataBindings.Add("Text", base.DataSource, "FirstName");
            this.txtLastName.DataBindings.Add("Text", base.DataSource, "LastName");
            this.txtYearOfWork.DataBindings.Add("Text", base.DataSource, "YearOfWork", "{0:G}");
            this.txtNumberOfYear.DataBindings.Add("Text", base.DataSource, "NumberOfYear", "{0:G}");
            this.txtFurloughThisYear.DataBindings.Add("Text", base.DataSource, "FurloughThisYear", "{0:G}");
            this.txtM1.DataBindings.Add("Text", base.DataSource, "M1", "{0:G}");
            this.txtM2.DataBindings.Add("Text", base.DataSource, "M2", "{0:G}");
            this.txtM3.DataBindings.Add("Text", base.DataSource, "M3", "{0:G}");
            this.txtM4.DataBindings.Add("Text", base.DataSource, "M4", "{0:G}");
            this.txtM5.DataBindings.Add("Text", base.DataSource, "M5", "{0:G}");
            this.txtM6.DataBindings.Add("Text", base.DataSource, "M6", "{0:G}");
            this.txtM7.DataBindings.Add("Text", base.DataSource, "M7", "{0:G}");
            this.txtM8.DataBindings.Add("Text", base.DataSource, "M8", "{0:G}");
            this.txtM9.DataBindings.Add("Text", base.DataSource, "M9", "{0:G}");
            this.txtM10.DataBindings.Add("Text", base.DataSource, "M10", "{0:G}");
            this.txtM11.DataBindings.Add("Text", base.DataSource, "M11", "{0:G}");
            this.txtM12.DataBindings.Add("Text", base.DataSource, "M12", "{0:G}");
            this.txtTotalDay.DataBindings.Add("Text", base.DataSource, "TotalDay", "{0:G}");
            this.txtRemainDay.DataBindings.Add("Text", base.DataSource, "RemainDay", "{0:G}");
            this.txtTotalYearOfWork.DataBindings.Add("Text", base.DataSource, "YearOfWork", "{0:G}");
            this.txtTotalNumberOfYear.DataBindings.Add("Text", base.DataSource, "NumberOfYear", "{0:G}");
            this.txtTotalFurloughThisYear.DataBindings.Add("Text", base.DataSource, "FurloughThisYear", "{0:G}");
            this.txtTotalM1.DataBindings.Add("Text", base.DataSource, "M1", "{0:G}");
            this.txtTotalM2.DataBindings.Add("Text", base.DataSource, "M2", "{0:G}");
            this.txtTotalM3.DataBindings.Add("Text", base.DataSource, "M3", "{0:G}");
            this.txtTotalM4.DataBindings.Add("Text", base.DataSource, "M4", "{0:G}");
            this.txtTotalM5.DataBindings.Add("Text", base.DataSource, "M5", "{0:G}");
            this.txtTotalM6.DataBindings.Add("Text", base.DataSource, "M6", "{0:G}");
            this.txtTotalM7.DataBindings.Add("Text", base.DataSource, "M7", "{0:G}");
            this.txtTotalM8.DataBindings.Add("Text", base.DataSource, "M8", "{0:G}");
            this.txtTotalM9.DataBindings.Add("Text", base.DataSource, "M9", "{0:G}");
            this.txtTotalM10.DataBindings.Add("Text", base.DataSource, "M10", "{0:G}");
            this.txtTotalM11.DataBindings.Add("Text", base.DataSource, "M11", "{0:G}");
            this.txtTotalM12.DataBindings.Add("Text", base.DataSource, "M12", "{0:G}");
            this.txtTotalTotalDay.DataBindings.Add("Text", base.DataSource, "TotalDay", "{0:G}");
            this.txtTotalRemainDay.DataBindings.Add("Text", base.DataSource, "RemainDay", "{0:G}");
            this.txtTotalYearOfWork.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:G}");
            this.txtTotalNumberOfYear.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:G}");
            this.txtTotalFurloughThisYear.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:G}");
            this.txtTotalM1.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:G}");
            this.txtTotalM2.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:G}");
            this.txtTotalM3.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:G}");
            this.txtTotalM4.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:G}");
            this.txtTotalM5.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:G}");
            this.txtTotalM6.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:G}");
            this.txtTotalM7.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:G}");
            this.txtTotalM8.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:G}");
            this.txtTotalM9.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:G}");
            this.txtTotalM10.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:G}");
            this.txtTotalM11.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:G}");
            this.txtTotalM12.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:G}");
            this.txtTotalTotalDay.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:G}");
            this.txtTotalRemainDay.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:G}");
        }

        private void rptListEmployee_BeforePrint(object sender, PrintEventArgs e)
        {
            this.txtTitle.Text = "BẢNG THỐNG K\x00ca NGHỈ PH\x00c9P NĂM " + this.m_Year.ToString();
            this.LoadAllData();
            //if (MyInfo.Get(MyEncryption.Encrypt("ERP01", "123654", true)) == "OK")
            {
                this.txtCompany.Text = "";//MyInfo.Company.ToUpper();
                this.txtAddress.Text = "";//MyInfo.Address;
                this.ptPhoto.Image = null;//MyInfo.Photo;
            }
        }

        private void txtM1_BeforePrint(object sender, PrintEventArgs e)
        {
            XRTableCell cell = sender as XRTableCell;
            if (cell.Text == "0")
            {
                cell.Text = "";
            }
        }

        private void txtOrder_BeforePrint(object sender, PrintEventArgs e)
        {
            this.m_Order++;
            this.txtOrder.Text = this.m_Order.ToString();
        }
    }
}

